class CreateCadastroContatoBairros < ActiveRecord::Migration
  def self.up
    create_table :bairro do |t|
      t.string :nome, :limit => 72, :null => false
      t.string :abreviacao, :limit => 40, :null => true
      t.string :situacao, :limit => 3, :null => false
      t.integer :localidade_id, :null => false
      t.timestamps
    end
  end

  def self.down
    drop_table :bairro
  end
end
